package com.qyhl.webtv.module_news.news.normal;


import com.qyhl.webtv.commonlib.entity.intergral.CoinBean;
import com.qyhl.webtv.commonlib.entity.news.AdvHomeBean;
import com.qyhl.webtv.commonlib.entity.news.NormalNewsBean;

import java.util.List;

/**
 * Created by qyhl on 2017/11/17.
 */

public interface NormalNewsContract {
    interface NormalView {
        void commentSuccess(List<NormalNewsBean.ArticleComment> list);

        void commentError(int code, String msg);

        void setDetail(NormalNewsBean bean);

        void detailError(String msg);

        void showEmpty(String msg);

        void collectSuccess(String msg);

        void cancelCollectSuccess();

        void cancelCollectError(String msg);

        void collectError(String msg);

        void likeSuccess();

        void likeError(String msg);

        void cancelLikeSuccess();

        void cancelLikeError(String msg);

        void sendSuccess(String msg);

        void sendError(String msg);

        void setAdv(List<AdvHomeBean> beanList);

        void advError();

        void cancelCollect();

        void getCoinSuccess(CoinBean bean);

        void getCoinFailure(String msg);

        void getCommentCoinSuccess(CoinBean coinBean);

        void getCommentCoinFailure(String msg);
    }

    interface NormalPresenter {
        void commentSuccess(List<NormalNewsBean.ArticleComment> list);

        void commentError(int code, String msg);

        void sendSuccess(String msg);

        void sendError(String msg);

        void setDetail(NormalNewsBean bean);

        void detailError(int errorId, String msg);

        void collectSuccess(String msg);

        void cancelCollectSuccess();

        void collectError(String msg);

        void cancelCollectError(String msg);

        void likeSuccess();

        void likeError(String msg);

        void cancelLikeSuccess();

        void cancelLikeError(String msg);

        void setAdv(List<AdvHomeBean> beanList);

        void advError();

        void cancelCollect();

        //----------------------------------------------------

        void getDetail(String newsId);

        void getComment(String newsId);

        void getAdv(String sectionId);

        void count(String newsId);//点击量统计

        void collect(String newsId);//收藏

        void cancelCollect(String newsId);

        void like(String newsId);//点心

        void cancelLike(String newsId);

        void sendComment(String title, String catalogId, String type, String id, String commentUser, String content);

        void getCoin(String username);

        void getCoinSuccess(CoinBean bean);

        void getCoinFailure(String msg);

        void getCommentCoin(String name, String type);

        void getCommentCoinSuccess(CoinBean coinBean);

        void getCommentCoinFailure(String msg);

        void shareCount(String newsId);
    }

    interface NormalModel {
        void getDetail(String newsId);

        void getComment(String newsId);

        void getAdv(String catalogId);

        void count(String newsId);//点击量统计

        void collect(String newsId);//收藏

        void cancelCollect(String newsId);

        void like(String newsId);//点心

        void cancelLike(String newsId);

        void sendComment(String title, String catalogId, String type, String id, String commentUser, String content);

        void getCoin(String username);

        void getCommentCoin(String name, String type);

        void shareCount(String newsId);

    }
}
